package com.killer.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.killer.pojo.entity.BOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

public interface BOrderDao extends BaseMapper<BOrder> {


    @Select("select id, `name` from user where  create_time > #{date} order by create_time desc limit #{pageSize}")
    List<BOrder> selectPage(@Param("date") Date date, @Param("pageSize") int pageSize);
}
